package com.yilin.tms.core.entity.user.organize;


import com.baomidou.mybatisplus.annotation.TableName;
import com.yilin.tms.core.commons.base.BaseEntity;
import com.yilin.tms.core.entity.user.RoleType;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "user_role")
@TableName("user_role")
public class UserRole extends BaseEntity {

    @Column(name = "organize_id")
    private String organizeId;// 所属组织
    @Column(name = "organize_name")
    private String organizeName;// 所属组织

    @Column(name = "name")
    private String name;// 角色名称
    @Column(name = "status")
    private Boolean status;// 角色状态 0 未启用 1 启动
    @Column(name = "role_code", updatable = false)
    private String roleCode;// 角色唯一码

    @Column(name = "role_type")
    private RoleType roleType;// 角色类型
    @Column(name = "is_manager")
    private Boolean isManager;// 是否管理员
    @Column(name = "role_jurisdiction")
    private String roleJurisdiction; //角色权限 1，2

    public String getRoleJurisdiction() {
        return roleJurisdiction;
    }

    public void setRoleJurisdiction(String roleJurisdiction) {
        this.roleJurisdiction = roleJurisdiction;
    }

    public String getOrganizeId() {
        return organizeId;
    }

    public void setOrganizeId(String organizeId) {
        this.organizeId = organizeId;
    }

    public String getOrganizeName() {
        return organizeName;
    }

    public void setOrganizeName(String organizeName) {
        this.organizeName = organizeName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public RoleType getRoleType() {
        return roleType;
    }

    public void setRoleType(RoleType roleType) {
        this.roleType = roleType;
    }

    public Boolean getManager() {
        return isManager;
    }

    public void setManager(Boolean manager) {
        isManager = manager;
    }
}
